import config from '../../utils/config';
import apiCreator from '../../utils/apiCreator';

const api = apiCreator();

export default {
  //删除交易对手
  deleteCounterparty: (query) => api.get(`${config.interfaces.type5}counterparty-server/counterparty/deleteBasic`, query),
  //查询交易对手列表
  queryCounterpartyList: (query) => api.post(`${config.interfaces.type5}counterparty-server/counterparty/getBasicList`, query),
  //新增或者编辑
  saveOrUpdateBasic: (query) => api.post(`${config.interfaces.type5}counterparty-server/counterparty/saveOrUpdateBasic`, query),
  //获取详情页
  getBasicDetail: (query) => api.get(`${config.interfaces.type5}counterparty-server/counterparty/getBasicDetail`, query),
  //获取母机构下拉列表
  getParentOrgList: (query) => api.get(`${config.interfaces.type5}counterparty-server/counterparty/getParentOrg`, query),
  //获取审批流 详情页
  getBasicDetailProcess: (query) => api.get(`${config.interfaces.type5}counterparty-server/counterparty/find-temp`, query),
  //审批流 编辑交易对手
  updateBasicProcess: (query) => api.post(`${config.interfaces.type5}counterparty-server/counterparty/update-temp`, query),
  //获取交易对手短名
  queryShortNameLike: (query) => api.get(`${config.interfaces.type5}counterparty-server/counterparty/queryShortNameLike`, query),
  //获取银行间交易对手
  queryBankList: (query) => api.get(`${config.interfaces.type5}counterparty-server/counterparty/queryLike`, query),
};
